package com.gdqy.FCS.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gdqy.FCS.dao.WeaveDao;
import com.gdqy.FCS.entity.Weave;

@Service
@Transactional
public class WeaveService {
	@Autowired
	private WeaveDao weaveDao;


	public List<Weave> selectAll(){
		return weaveDao.selectAll();
	}	
	
	public Weave selectById(int id){
		return weaveDao.selectById(id);
	}
	
	public List<Weave> selectByParent_code(String parent_code){
		return weaveDao.selectByParent_code(parent_code);
	}
	public Weave selectByCode(String code){
		return weaveDao.selectByCode(code);
	}
	public int insert(Weave weave) {
		return weaveDao.insert(weave);
	}
}
